package com.advitor;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * User: mishuai
 * Date: 2019-06-24
 * Time: 21:33
 * Des:
 */
public class Test {
    public static void main(String[] args) {

        String date=getFormatMMddDate(new Date());
        System.out.println(date);



    }

    /**
     * Gets the format m mdd.
     *
     * @return the format m mdd
     */
    public static String getFormatMMddDate(Date date) {
        String dateStr = "";
        try {
            SimpleDateFormat df = new SimpleDateFormat("M月d日");
            dateStr = df.format(date);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return dateStr;
    }
}
